package com.systemsjr.jrbbf.expense;

public class Expense {
	
	private int expenseType;
	private double expenseAmount;
	private int id;
	
	public Expense(int expenseType, double expenseAmount) {
		super();
		this.expenseType = expenseType;
		this.expenseAmount = expenseAmount;
	}
	
	public Expense(int id, int expenseType, double expenseAmount) {
		this.expenseType = expenseType;
		this.expenseAmount = expenseAmount;
		this.id = id;
	}
	
	public Expense(int expenseType){
		this.expenseType = expenseType;
	}

	public int getExpenseType() {
		return expenseType;
	}
	
	public void setExpenseType(int expenseType) {
		this.expenseType = expenseType;
	}
	
	public double getExpenseAmount() {
		return expenseAmount;
	}
	
	public void setExpenseAmount(double expenseAmount) {
		this.expenseAmount = expenseAmount;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	public boolean equals(Object obj) {
		
		Expense exp = (Expense)obj;
		
		if(this.expenseAmount == exp.expenseAmount && this.expenseType == exp.expenseType){
			return true;
		}
		return false;
	}
}
